﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Csla;
using log4net;

namespace Sireass.Bl
{
	[Serializable]
	public class ServicioCriteria : CriteriaBase<ServicioCriteria>
	{
		public static PropertyInfo<byte> IdPerfilProperty = RegisterProperty<byte>(c => c.IdPerfil);
		public byte IdPerfil
		{
			get { return ReadProperty(IdPerfilProperty); }
			private set { LoadProperty(IdPerfilProperty, value); }
		}
		public static PropertyInfo<bool?> HabilitadoProperty = RegisterProperty<bool?>(c => c.Habilitado);
		public bool? Habilitado 
		{
			get { return ReadProperty(HabilitadoProperty); }
			private set { LoadProperty(HabilitadoProperty, value); } 
		}				
		public ServicioCriteria(byte idPerfil, bool? habilitado)
		{
			IdPerfil = idPerfil;
			Habilitado = habilitado;			
		}
	}
}
